// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
// import './assets/rem'
// import './assets/rems.css'
import './assets/reset.css'
// import remUtil from './assets/remUtil'
import Pagination from "@/components/Pagination";
import Vue from 'vue'
import App from './App'
import router from './router'

import axios from 'axios'
import { Notify } from 'vant';

// 全局注册
Vue.use(Notify);
import { Button, List, GoodsAction, GoodsActionButton, GoodsActionIcon, Panel} from 'vant';
import { Area, ActionSheet, Overlay, CouponCell, CouponList, AddressList } from 'vant';
import { Col, Row, NoticeBar, PullRefresh, Popup, ShareSheet, Toast, Uploader, AddressEdit } from 'vant';
import { Checkbox, CheckboxGroup, Sku, Form, ContactCard, CountDown, Dialog,DatetimePicker } from 'vant';
import { Icon, Sticky, Card, SwipeCell, Step, Steps, NumberKeyboard, Radio, RadioGroup } from 'vant';
import { Field, Tabbar, TabbarItem, Cell, CellGroup, Rate, PasswordInput, Sidebar, SidebarItem } from 'vant';
import { Search, Switch, Tag, Tab, Tabs, Swipe, SwipeItem, Lazyload, Grid, GridItem, Skeleton } from 'vant';
import { Image as VanImage, NavBar, DropdownMenu, DropdownItem, Picker, Divider, SubmitBar } from 'vant';

Vue.use(Search).use(Tag).use(Tab).use(Tabs).use(Swipe).use(NoticeBar).use(SwipeItem).use(Lazyload,{ lazyComponent: true,}).use(Picker).use(ShareSheet).use(Switch);
Vue.use(Field).use(Grid).use(GridItem).use(Sku).use(VanImage).use(Popup).use(Skeleton).use(Divider).use(Toast).use(CountDown).use(DatetimePicker);
Vue.use(Icon).use(Tabbar).use(TabbarItem).use(Card).use(SwipeCell).use(Form).use(Step).use(Steps).use(GoodsActionIcon).use(AddressEdit);
Vue.use(Button).use(Row).use(Col).use(Sticky).use(NavBar).use(Cell).use(CellGroup).use(Rate).use(GoodsActionButton).use(AddressList);
Vue.use(Checkbox).use(CheckboxGroup).use(PullRefresh).use(DropdownMenu).use(DropdownItem).use(GoodsAction).use(Radio).use(RadioGroup);
Vue.use(Area).use(ActionSheet).use(List).use(Overlay).use(ContactCard).use(CouponCell).use(CouponList).use(Dialog);
Vue.use(NumberKeyboard).use(Panel).use(Sidebar).use(SidebarItem).use(PasswordInput).use(SubmitBar).use(Uploader);

// import ElementUI from 'element-ui';
// import 'element-ui/lib/theme-chalk/index.css';
// import App from './App.vue';

// Vue.use(ElementUI);
// Vue.prototype.$remUtil = remUtil;
Vue.prototype.axios = axios;
Vue.config.productionTip = false
Vue.component('Pagination', Pagination)
/* eslint-disable no-new */

import plus from 'vue-h5-plus'
Vue.use(plus)

new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>',
  // created() {
  //   if(this.$remUtil.checkDevice()!=="4") {
  //     document.documentElement.style.fontSize = "2.66667vw"
  //   }
  // }
})
